FROM python:3-alpine

LABEL maintainer='ziyu@i9i8.com'
LABEL description='azazie web test about mobile-us.'

WORKDIR /user/src/test/az-web

COPY ./ ./azmobileus/
WORKDIR azmobileus/

RUN pip install --no-cache-dir -r requirements.txt

VOLUME /user/src/test/az-web/azmobileus/logs/
VOLUME /user/src/test/az-web/azmobileus/reports/
VOLUME /user/src/test/az-web/azmobileus/screenshot/

EXPOSE 80

ENTRYPOINT ["pytest", "-m", "P0 or P1", "--log-level=INFO", "--emoji"]
CMD ["-n", "8", "--reruns", "0", "--base-url=https://www.xxx.com/", "--api-url=https://xxx.com/", ""]
